package cqrtplm.mapper;

import cqrtplm.entity.RtOaFormMappingDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface RtOaFormMappingMapper {

    int insert(RtOaFormMappingDO entity);

    int update(RtOaFormMappingDO entity);

    int delete(String type);

    RtOaFormMappingDO selectById(@Param("id") BigInteger id);

    List<RtOaFormMappingDO> selectAll();

    RtOaFormMappingDO selectByType(String typeName);

    String selectContainerIdByJobId(String jobId);

    String selectTypeIdByName(String typeName);

    Integer selectOneByDocType(String docType);

}


